{literal}
    {extend name="common/form" /}
    {block name="form" /}
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf">
            <div class="widget-head am-cf">
{/literal}
                <div class="widget-title am-fl">{$title}</div>
                <div class="widget-function am-fr">
                    <a href="javascript:;" class="am-icon-cog"></a>
                </div>
            </div>
            <div class="widget-body am-fr">
            <form class="am-form tpl-form-border-form tpl-form-border-br">
                {present name='$info.id'}<input type="hidden" name="id" value="{$info.id}">{/present}
            {php} foreach ($info as $key => $v){
                if(strpos($key,'time'))
                continue;
                {/php}
                {if ($key!='id')}
                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">
                        {$v}
                    </label>
                    {php}


                        if(substr($v,0,6) !='是否'){
                    {/php}
                        <div class="am-u-sm-9">
                           <input type="text" name="{$key}" value="{literal}{$info.{/literal}{$key}{literal}|default=''}{/literal}" required="required" class="tpl-form-input" placeholder="请填写{$v}">
                        </div>
                    {php}
                       }else{
                    {/php}
                        <div class="am-u-sm-9">
                            <div class="tpl-switch">
                                <input type="checkbox" name="{$key}"  class="ios-switch bigswitch tpl-switch-btn am-margin-top-xs" {literal}{present name='$info.{/literal}{$key}{literal}'}{eq name='$info.{/literal}{$key}' value="1"}checked{/eq} {/present}>
                                <div class="tpl-switch-btn-view">
                                    <div></div>
                                </div>
                            </div>
                        </div>
                    {php}
                        }
                    {/php}
                </div>
                {/if}

            {php}}{/php}
                <div class="am-form-group">
                    <div class="am-u-sm-9 am-u-sm-push-3">
                        <button type="button" onclick="add({literal}'{:url($type)}','form'{/literal})" class="am-btn am-btn-primary tpl-btn-bg-color-success" >
                            提交
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    </div>
{literal}
    {/block}
    {extend}
{/literal}